package com.itheima;

import java.util.Scanner;

public class array1 {
    public static void main(String[] args) {
//        double[ ]scores = new double[5];
//        Scanner sc = new Scanner(System.in);
//        for(int j=0;j<scores.length;j++){
//            scores[j] = sc.nextDouble();
//        }
        array1();
    }

    public static void array1() {
        String[] poker = new String[54];
        String[] color = {"红桃", "黑桃", "方块", "梅花"};
        String[] numbers = {"3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A", "2"};
        int index = 0;
        for (int i = 0; i < numbers.length; i++) {
            for (int j = 0; j < color.length; j++) {
                poker[i * 4 + j] = color[j] + numbers[i];
                index++;
            }
        }
        poker[index] = "小王";
        poker[index + 1] = "大王";
        for (int i = 0; i < poker.length; i++) {
            int num = (int) (Math.random() * poker.length);
            String temp = poker[i];
            poker[i] = poker[num];
            poker[num] = temp;
        }
        for (int i = 1; i <= poker.length; i++) {
            System.out.print(poker[i - 1] + ' ');
            if (i % 4 == 0) System.out.println();
        }
    }
}
